/*
Miranda IM for Windows Search

Copyright (C) 2012-2014 Nikolay Raspopov

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

#pragma once

#pragma warning( disable : 4996 )	// was declared deprecated

#ifndef STRICT
#define STRICT
#endif

#ifndef _SECURE_ATL
#define _SECURE_ATL 1
#endif

#include "targetver.h"

#define _ATL_FREE_THREADED
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
#define _ATL_CSTRING_NO_CRT
#define _ATL_NO_VARIANT_THROW
#define _ATL_ALL_WARNINGS
#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW

#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES			1
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES			1
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT	1

#ifdef _DEBUG
#define _ATL_DEBUG_QI
#endif

#define ISOLATION_AWARE_ENABLED 1

#include "resource.h"

#include <atlbase.h>
#include <atlcom.h>
#include <atlctl.h>
#include <atlsecurity.h>
#include <atlcomtime.h>
#include <atlfile.h>
#include <intsafe.h>
#include <strsafe.h>
#include <searchapi.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <windowssearcherrors.h>

#pragma comment( lib, "version.lib" )

#ifndef PROGDLG_MARQUEEPROGRESS
#define PROGDLG_MARQUEEPROGRESS 0x00000020      // Use marquee progress (comctl32 v6 required)
#endif
#ifndef PROGDLG_NOCANCEL
#define PROGDLG_NOCANCEL        0x00000040      // No cancel button (operation cannot be canceled) (use sparingly)
#endif

#include "PropVariant.h"
#include "Strings.h"

#pragma warning( push )
#pragma warning( disable : 4100 )	// unreferenced formal parameter
#pragma warning( disable : 4995 )	// name was marked as #pragma deprecated

#define MIRANDA_VER 0x0900

#include <m_stdhdr.h>
#include <m_plugins.h>
#include <newpluginapi.h>
#include <m_system.h>
#include <statusmodes.h>
#include <m_clist.h>
#include <m_utils.h>
#include <m_database.h>
#include <m_contacts.h>
#include <m_langpack.h>
#include "m_updater.h"

#pragma warning( pop )

#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif
